import request from './request';
import getParams from '@/tools/getParams.js';

export const commentFindList = (params) => {
    const str = getParams(params)
    const url = `/review/findList${str}`
    return request({
        url: url,
        method: 'get',
        data: {}
    })
}
export const commentAdd = (params) => {
    return request({
        url: '/review/add',
        method: 'post',
        data: params
    })
}
export const commentUpdate = (params) => {
    return request({
        url: '/review/update',
        method: 'post',
        data: params
    })
}
export const commentDelete = (params) => {
    return request({
        url: '/review/delete',
        method: 'post',
        data: params
    })
}